package com.iOS.dto;

import com.iOS.entity.Note;
import com.iOS.enums.NoteEnum;

import java.util.List;

public class NoteExecution {
    private int state;
    private String stateinfo;
    private Note note;
    private List<Note> notes;

    public NoteExecution(NoteEnum noteEnum) {
        this.state = noteEnum.getState();
        this.stateinfo = noteEnum.getStateinfo();
    }

    public NoteExecution(NoteEnum noteEnum, Note note) {
        this.state = noteEnum.getState();
        this.stateinfo = noteEnum.getStateinfo();
        this.note = note;
    }
    public NoteExecution(NoteEnum noteEnum, List<Note> notes) {
        this.state = noteEnum.getState();
        this.stateinfo = noteEnum.getStateinfo();
        this.notes = notes;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getStateinfo() {
        return stateinfo;
    }

    public void setStateinfo(String stateinfo) {
        this.stateinfo = stateinfo;
    }

    public Note getNote() {
        return note;
    }

    public void setNote(Note note) {
        this.note = note;
    }

    public List<Note> getNotes() {
        return notes;
    }

    public void setNotes(List<Note> notes) {
        this.notes = notes;
    }

    @Override
    public String toString() {
        return "NoteExecution{" +
                "state=" + state +
                ", stateinfo='" + stateinfo + '\'' +
                ", note=" + note +
                ", notes=" + notes +
                '}';
    }
}
